package com.lpx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * 常用组合
 *  springboot + springsecurity
 *  springCloud + springsecurity
 *  springMVC + shrio
 * security  默认用户名 user 密码：见启动控制台
 * security 本质就是一个过滤器链（有很多过滤器）	
 * @author ccit
 *
 */
@SpringBootApplication
@EnableGlobalMethodSecurity(securedEnabled = true)//开启security 注解  @PreAuthorize @Secured 等
public class runApp {
	
	public static void main(String[] args) {
		SpringApplication.run(runApp.class, args);
	}

}
